<%--
  Created by IntelliJ IDEA.
  User: zcd
  Date: 2019/7/5
  Time: 7:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
%>
<table width="684px" border="0" cellspacing="15" cellpadding="0">
    <tr>
        <th>文章标题</th>
        <th>发布时间</th>
        <th>赞</th>
        <th>评论数</th>
    </tr>
    <c:forEach items="${requestScope.pageinfo.list}" var="article">
        <tr>
            <td class="textleft"><a href="<%=path%>/web/article/details?id=${article.id}" target="_blank">${article.title}</a></td>
            <td>${article.inputTime}</td>
            <td>${article.praiseCount}</td>
            <td>${article.commentCount}</td>
        </tr>
    </c:forEach>
</table>


<div class="pagination ">
    <c:forEach items="${requestScope.pageinfo.navigatepageNums}" var="i">
        <a href="javascript:void(0);" class="number current">${i}</a>
    </c:forEach>
</div>

